import FormEditGlobalDict from '@/pages/globalDict/formEditGlobalDict.vue';
import FormEditGlobalDictItem from '@/pages/globalDict/formEditGlobalDictItem.vue';
import FormEditGeneralUnitBasic from '@/pages/UnitBasic/formEditGeneralUnitBasic.vue';
import FormEditPersonnelBasic from '@/pages/personnelBasic/formEditPersonnelBasic.vue';
import FormEditTeacherBasic from '@/pages/personnelBasic/formEditTeacherBasic.vue';

const dialogRouterComponent = {
  formEditGlobalDict: FormEditGlobalDict,
  formEditGlobalDictItem: FormEditGlobalDictItem,
  formEditGeneralUnitBasic: FormEditGeneralUnitBasic,
  formEditPersonnelBasic: FormEditPersonnelBasic,
  formEditTeacherBasic: FormEditTeacherBasic,
};

export const getRouteComponent = (component: string) => {
  if (component == null || component === '') {
    return null;
  }
  return dialogRouterComponent[component];
};
